﻿<%@ Page Title="" Language="C#" MasterPageFile="Admin.master" %>

<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
        SubmitButton.Text = Lang.Show("Submit");
    }
    protected void Unnamed1_Click1(object sender, EventArgs e)
    {
        Agents NewAgents = new Agents();
        int Item_Lang = Utils.GetQueryString("lang", 1);
        if (NewAgents.Item_AddEdit(0, Agent_Name.Value, Agent_Tel.Value, Agent_Site.Value, Agent_Address.Value, Convert.ToInt32(Orders.Value), Item_Lang, "") > 0)
            Response.Redirect("Agents.aspx?lang=" + Item_Lang);
    }
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><%=Lang.Show("AgentsCenter")%> - <%=Lang.Show("ItemAdd")%></asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<form runat="server">
<table class="inputs">
    <tr>
        <td><%=Lang.Show("UserName") %> :</td>
        <td><input type="text" id="Agent_Name" runat="server" /></td>
        <td><p></p></td>
    </tr>
    <tr>
        <td><%=Lang.Show("Zone")%> :</td>
        <td><input type="text" id="Agent_Site" runat="server" /></td>
        <td><p></p></td>
    </tr>
    <tr>
        <td><%=Lang.Show("UserPhone")%> :</td>
        <td><input type="text" id="Agent_Tel" runat="server" maxlength="11" /></td>
        <td></td>
    </tr>
    <tr>
        <td><%=Lang.Show("Address")%> :</td>
        <td><input type="text" id="Agent_Address" runat="server" /></td>
        <td></td>
    </tr>
    <tr>
        <td><%=Lang.Show("Order")%> :</td>
        <td><input type="text" id="Orders" runat="server" value="254" maxlength="3" /></td>
        <td><p><%=Lang.Show("OrderDirections")%></p></td>
    </tr>
    <tr>
        <td></td>
        <td><asp:Button ID="SubmitButton" runat="server" Text="يوللاش" CssClass="button"    onclick="Unnamed1_Click1" /></td>
        <td></td>
    </tr>
</table>
</form>
</asp:Content>

